home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 45
/
Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso
/
Aminet
/
game
/
role
/
ldmud-3.2-bin.lha
/
mud
/
doc
/
efun
/
allocate_mapping
< prev
next >
Wrap
Text File
|
2001-04-06
|
986b
|
27 lines
DEPRECATED
SYNOPSIS
mapping allocate_mapping(int size, int width)
DESCRIPTION
Reserve memory for a mapping.
size is the number of entries (i.e. keys) to reserve, width is
the number of data items per entry. If the optional width is
omitted, 1 is used as default.
This is useful only when you are going to construct a mapping
whose approximate size you know beforehand, to save on malloc
overhead. If you don't fill in data for all the allocated
elements, any leftovers will be freed after the current
function execution ended. It is also useful if you want the
mapping to have a certain width even if you don't provide
all the data items for the keys yet.
HISTORY
Renamed to 'm_allocate()' in LDMud 3.2.6.
Since LDMud 3.2.9, not available if driver is compiled without
USE_DEPRECATED.
SEE ALSO
mappings(LPC), walk_mapping(E), get_type_info(E)